# Reference: <https://postmarketos.org/devicepkg>
pkgname=device-asus-p024
pkgdesc="ASUS ZenPad 8.0"
pkgver=2
pkgrel=0
url="https://postmarketos.org"
license="MIT"
arch="armv7"
options="!check !archcheck"
depends="
	linux-asus-p024
	mkbootimg
	postmarketos-base
	msm-fb-refresher
"
makedepends="devicepkg-dev"
source="
	deviceinfo
	brightness
"

build() {
	devicepkg_build $startdir $pkgname
}

package() {
	devicepkg_package $startdir $pkgname
	install -Dm755 "$srcdir"/brightness "$pkgdir"/etc/local.d/brightness.start
}

sha512sums="
56b44a131a7555f5a8b178856419baefae7ae924f30ebebb396b9a119cacfd3affc03dae330f93570400fb2dcf5b1a0f6fe0ff490414120903ff8b479425f9c8  deviceinfo
b0086498d472a02c9ef806d46bae3791ccaf8f94359bca2a420dd578e596b24ced3c089b631952f2b4379e067260a4ee8c424d6f94edd94245b94d3f79f5c9b4  brightness
"
